﻿namespace LP
{
    using System;
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public sealed class UIAttribute : Attribute
    {
        public UIAttribute(string uiPath,EUIType uIType, bool isCache = false , bool isResources = false)
        {
            UIPath = uiPath;
            UIType = uIType;
            IsCache = isCache;
            IsResources = isResources;
        }
        //预制体所在路径
        public string UIPath { get; private set; }

        //HideUI时是否立即销毁
        public bool IsCache { get; private set; }

        //ui类型
        public EUIType UIType { get; private set; }

        //是否是在Resources下
        public bool IsResources { get; private set; }
    }
}